package nige.capture;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class Fenetre extends JFrame implements KeyListener {
	
	JPaneImage imageAScanner = null;
	public static JPaneTransformation imageTransformee = null;
	public static JLabel logsPrincipal = null;
	public static JLabel logsSecondaire = null;
	
	public static void main(String[] args) {
		Fenetre fen = new Fenetre();
		fen.setVisible(true);
	}
	
	public Fenetre() {
		setBounds(10,10,500,500);
		setLayout(null);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		logsPrincipal = new JLabel("Aucun log...");
		logsPrincipal.setBounds(0,0,2000,20);
		add(logsPrincipal);
		
		logsSecondaire = new JLabel("Aucun log...");
		logsSecondaire.setBounds(0,20,2000,20);
		add(logsSecondaire);
		
		imageAScanner = new JPaneImage();
		imageAScanner.setBackground(Color.white);
		imageAScanner.setBounds(0,40,245,245);
		add(imageAScanner);
		
		imageTransformee = new JPaneTransformation();
		imageTransformee.setBackground(Color.white);
		imageTransformee.setBounds(250,40,245,245);
		add(imageTransformee);
		
		addKeyListener(this);
		
		calculate();
	}
	
	public void calculate() {
		Scan sc = new Scan();
	}


	public void keyPressed(KeyEvent arg0) {
	}

	public void keyReleased(KeyEvent arg0) {
	}

	public void keyTyped(KeyEvent arg0) {
		Maillage.next = false;
	}
	
}
